package com.itheima.ood.inner.demo03;

public class Body {

    private int weight = 30;

    class Heart {

        private int weight = 20;

        public void jump() {

            int weight = 10;

            System.out.println("心脏在跳动" + weight);
            System.out.println("心脏在跳动" + this.weight);
            System.out.println("心脏在跳动" + new Body().weight);
            System.out.println("心脏在跳动" + Body.this.weight);
        }
    }
}
